package com.mask.mk.service;

import com.mask.mk.pojo.Addressinfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mask.mk.util.JsonResult;
import com.mask.mk.vo.address.UpdateAddressRequest;

/**
 * <p>
 * 地址信息表 服务类
 * </p>
 *
 * @author joey
 * @since 2023-04-25
 */
public interface AddressinfoService  {

    //添加或修改地址
    JsonResult addUpdateAddressById(UpdateAddressRequest updateAddressRequest);

    //获取地址列表
    JsonResult queryAddressList(UpdateAddressRequest updateAddressRequest);

    //获取默认地址
    JsonResult queryOneDefault(UpdateAddressRequest updateAddressRequest);

    //根据id查地址
    JsonResult queryOneById(UpdateAddressRequest updateAddressRequest);

    //删除地址
    JsonResult delAddress(UpdateAddressRequest updateAddressRequest);

}
